package model;


/**
 * The Land Management Agency User class.
 * @author Justin Kudlo
 */
public class LMA extends User{

	/**
	 * The classes serializable ID.
	 */
	private static final long serialVersionUID = 
		7177439397584505713L;
	/**
	 * The instance flag for tracking whether the LMA is
	 * a verified LMA.
	 */
	private boolean isVerified;
	/**
	 * The LMA Company Name.
	 */
	private String myCompanyName;
	/**
	 * The jobs the LMA has created.
	 */
	@SuppressWarnings("unused")
	private Jobs myJobs;
	
	/**
	 * Creates the LMA object.
	 * @param theFirst The Users first name.
	 * @param theLast The Users last name.
	 * @param thePass The Users password.
	 * @param thePhone The Users phone number.
	 * @param theDob The Users DOB.
	 * @param theEmail The Users Email
	 * @param theUserName The Users UserName for logging in
	 * to the system.
	 * @param theCompanyName The LMA's company name.
	 * @param theJobs The LMA's Jobs.
	 */
	public LMA(final String theFirst,
			final String theLast,
			final String thePass,
			final String thePhone,
			final String theDob,
			final String theEmail,
			final String theUserName,
			final String theCompanyName, Jobs theJobs) {
		super(theFirst, theLast, thePass, thePhone, theDob, 
				theEmail, theUserName);
		isVerified = false;
		myCompanyName = theCompanyName;
	}

	/**
	 * Returns the name of the LMA.
	 * @return the LMA Company Name.
	 */
	public String getCompanyName()
	{
		return myCompanyName;
	}
	
	/**
	 * Sets if the company is verified.
	 * @param verified true if the company is to be 
	 * verified.
	 */
	public void setVerified(boolean verified) {
		isVerified = verified;
	}

	/**
	 * Returns whether or not the company is verified.
	 * @return verified true if LMA is verified, false 
	 * otherwise.
	 */
	public boolean isVerified() {
		return isVerified;
	}
}
